package com.gxa.ssm251.util;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class ResultJson implements Serializable {
    private Map<String,Object> mapResultJson = new HashMap<>();

    public void setCode(String code) {
        mapResultJson.put("code",code);
    }

    public void setMsg(String msg) {
        mapResultJson.put("msg",msg);
    }


    public void setData(Object data) {

        mapResultJson.put("data",data);
    }

    public void setCount(Object count) {
        mapResultJson.put("count",count);
    }
    public void setValue(String key,Object object){
        mapResultJson.put(key,object);
    }

    public Map<String, Object> getMapResultJson() {
        return mapResultJson;
    }
}
